package com.changzhi.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.changzhi.ldyl.model.Invite;
import com.changzhi.ldyl.model.vo.UserVo;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 * 邀请表 Mapper 接口
 * </p>
 *
 * @author huangrc
 * @since 2021-07-08
 */
public interface InviteMapper extends BaseMapper<Invite> {

	//邀请列表
	List<UserVo> selectInviteList(@Param("inviteId") Integer inviteId, @Param("id") Integer id, @Param("userId")  String userId);

	int reduceAmount(@Param("id") Integer id, @Param("value") Integer value);

	int updateByAwardStatus(@Param("id") Integer id);
}
